@import "./tools.less";

.content {
  .login {
    width: 500px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    margin: 0 auto;
    text-align: center;
    h1 {
      width: 100%;
      color: #333;
      font-size: 30px;
      margin: 20px 0;
      position: relative;
      text-align: center;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      overflow: hidden;
      &:before,
      &:after {
        content: "";
        position: absolute;
        top: 45%;
        width: 30%;
        border-top: 1px solid @tmColor;
      }
      &:before {
        left: 3%;
        margin-right: 15px;
      }
      &:after {
        right: 3%;
        margin-left: 15px;
      }
    }
    form {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      > span {
        position: absolute;
        z-index: 1000;
        color: @tmColor;
        &:nth-child(1) {
          top: 20px;
          left: 132px;
        }
        &:nth-child(2) {
          top: 75px;
          left: 132px;
        }
        &:nth-child(3) {
          top: 130px;
          left: 132px;
        }
      }
      input {
        display: block;
        margin: 10px 0;
        width: 250px;
        height: 35px;
        padding-left: 25px;
        box-sizing: border-box;
        border-radius: 5px;
        border-color: @tmColor;
        &:focus {
          padding-left: 30px;
          outline: none;
          box-shadow: 2px 2px 9px @hvColor;
          transform: scale(1.05);
        }
      }
      #tooltip {
        height: 40px;
        position: fixed;
        background-color: @hvColor;
        border-radius: 5px;
        border: 1px solid @tmColor;
        text-align: center;
        font-size: 12px;
        color: #fff;
        z-index: 100;
        line-height: 40px;
        padding: 0 5px;
        &::after {
          content: "";
          position: absolute;
          top: 50%;
          right: 99%; /* 将箭头放到目标元素的左侧 */
          border: 8px solid transparent;
          border-right-color: @hvColor; /* 设置右侧边框的颜色 */
          transform: translateY(-50%);
        }
        &::before {
          content: "";
          position: absolute;
          top: 50%;
          right: 100%; /* 将箭头放到目标元素的左侧 */
          border: 8px solid transparent;
          border-right-color: @tmColor; /* 设置右侧边框的颜色 */
          transform: translateY(-50%);
        }
      }
      .get-login {
        padding: 1.3em 3em;
        font-size: 14px;
        letter-spacing: 2.5px;
        font-weight: 500;
        color: #000;
        background-color: #fff;
        border: none;
        border-radius: 45px;
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease 0s;
        cursor: pointer;
        outline: none;
        margin: 20px 0;
        &:hover {
          background-color: @tmColor;
          box-shadow: 0px 15px 20px @hvColor;
          color: #fff;
          transform: translateY(-7px);
        }
        &:active {
          transform: translateY(-1px);
        }
      }
    }
  }
}
